import { defineConfig } from "umi";
import proxy from './proxy';
import routes from './routes';

const { UMI_ENV } = process.env;
console.log("config.ts: ", { UMI_ENV: UMI_ENV });
console.log("config.ts: ", UMI_ENV as keyof typeof proxy);
// console.log("config.ts: ",proxy[UMI_ENV as keyof typeof proxy]);


export default defineConfig({
  base: process.env.UMI_APP_BASE_URL,
  outputPath: 'dist',
  favicons: ['/eb.ico'],
  // title: process.env.UMI_APP_TITLE,
  routes,

  proxy: proxy[UMI_ENV as keyof typeof proxy],

  npmClient: 'pnpm',
});

